package com.ruibang.glass.equipment.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.equipment.domain.req.DeviceStaticsReq;
import com.ruibang.glass.equipment.domain.req.device.DeviceAllPageReq;
import com.ruibang.glass.equipment.domain.req.device.HazardAccountReq;
import com.ruibang.glass.equipment.entity.device.HazardAccount;
import com.teaming.cloud.framework2.common.model.ResultBody;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 隐患台账列表服务类
 * </p>
 *
 * @author mameng
 * @since 2024-03-20
 */
public interface HazardAccountService extends IService<HazardAccount> {
    /**
     * 隐患台账列表
     *
     * @param accountReq
     * @return
     */
    IPage<HazardAccount> queryPage(HazardAccountReq accountReq);

    /**
     * 跟新删除
     *
     * @param point
     * @return
     */
    ResultBody addOrUpdateCheck(HazardAccount point);

    ResultBody deviceStatics(DeviceStaticsReq deviceStaticsReq);

    /**
     * 导出
     *
     * @param accountReq
     * @param response
     */
    void export(HazardAccountReq accountReq, HttpServletResponse response);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    HazardAccount getInfo(String id);

    /***
     * 删除
     * @param id
     */
    void delete(String id);
}
